package lws.com.liwushuo.server.shouye;

import lws.com.liwushuo.bean.shouye.SearchHotBean;
import lws.com.liwushuo.bean.shouye.SearchSecondBottomBean;
import lws.com.liwushuo.bean.shouye.SearchSecondTopBean;
import lws.com.liwushuo.bean.shouye.SearchWordCompleteBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by ZQ on 2016/10/17.
 */

public interface SearchServer {

    @GET("/v2/search/hot_words")
    Call<SearchHotBean> getHotBean();

    //http://api.liwushuo.com/v2/search/word_completed?keyword=%E5%AE%BF%E8%88%8D
    @GET("/v2/search/word_completed")
    Call<SearchWordCompleteBean> getWordCompleteBean(@Query("keyword") String keyWord);

    @GET("/v2/search/post")
    Call<SearchSecondTopBean> getTopBean(@Query("sort") String sort,
                                         @Query("limit") int limit,
                                         @Query("offset") int offset,
                                         @Query("keyword") String keyword);

    @GET("/v2/search/item")
    Call<SearchSecondBottomBean> getBottomBean(@Query("sort") String sort,
                                               @Query("limit") int limit,
                                               @Query("offset") int offset,
                                               @Query("keyword") String keyword);
}
